﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using CQIE.TES.Model;
using CQIE.TES.WEB.USER.Models;
using Newtonsoft.Json.Linq;

namespace CQIE.TES.IDAL
{
    public interface IClass_DAL
    {
        /// <summary>
        /// 获取所有班级
        /// </summary>
        /// <returns></returns>
        List<Class_> GetAllClasses();


        Class_ FindByID(int id);

        /// <summary>
        /// 班级管理分页查询
        /// </summary>
        /// <param name="page">页数</param>
        /// <param name="limit">每页限制条数</param>
        /// <param name="search">根据classcode查询</param>
        /// <param name="count">总数</param>
        /// <returns></returns>
        List<Class_> GetClass_Page(int page, int limit, string search, out int count, ENUM_Graduate root);

        /// <summary>
        /// 逻辑删除班级（毕业班）
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DeleteClass_(int id);

        /// <summary>
        /// 添加班级信息
        /// </summary>
        /// <param name="data"></param>
        void InsertClass_(string classCode,int grade,string major);

        Class_ FindClassByStundentID(int sid);
        
        List<Class_> GetClassIDToStudent();
    }
}
